# _*_ encoding:utf-8 _*_
from rest_framework.permissions import IsAdminUser
from rest_framework.viewsets import ModelViewSet

from meiduo_admin.serializers.brand_serializers import BrandModelSerializer
from goods.models import Brand
from meiduo_admin.paginations import MyPage


class BrandViews(ModelViewSet):
    permission_classes = [IsAdminUser]

    queryset = Brand.objects.all()
    serializer_class = BrandModelSerializer
    pagination_class = MyPage